package com.wtwd.device.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wtwd.device.model.entity.DeviceStep;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * <p>
 * 每日步数 Mapper 接口
 * </p>
 *
 * @author mjy
 * @since 2024-05-25
 */
@Mapper
public interface AppDeviceStepMapper extends BaseMapper<DeviceStep> {

    int insertOrUpdate(DeviceStep step);

    /**
     * 批量插入或者更新
     * @param deviceSteps
     * @return
     */
    int bathInsertOrUpdate(@Param("list") List<DeviceStep> deviceSteps);
}
